package com.ffcs.crmd.tsp.api.task.job;

import com.ffcs.crmd.tsp.api.dto.task.TspJobExecutionException;

/**
 * 
 * 功能说明:可批量处理的任务
 *
 * @author ZHONGFUHUA
 * 
 * @since 1.0.0-SNAPSHOT
 *
 */
public interface IJobBatch<T>{
    
    /**
     * 
     * 功能说明:任务入口执行方法
     * 
     * @param context 上下文环境
     * @throws TspJobExecutionException
     */
    public void execute(IJobExecutionContext<T> context) throws TspJobExecutionException;
    
    /**
     * 
     * 功能说明:批量业务处理逻辑
     * 
     * @param param 业务处理参数
     * @throws TspJobExecutionException
     */
    public void businessProcess(T param) throws TspJobExecutionException;
    
}
